package com.mallcloud.mall.mall.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mallcloud.mall.mall.api.entity.MallProductCategoryModel;

import java.util.List;

/**
 * 商品分类
 */
public interface MallProductCategoryService extends IService<MallProductCategoryModel> {

	List<Tree<Long>> selectTree(Long parentId, String categoryName);

	Boolean removeCategoryById(Long categoryId);

	Boolean updateCategoryById(MallProductCategoryModel dto);

	Boolean saveCategory(MallProductCategoryModel dto);

}
